package com.gec.mapper;

import org.apache.ibatis.annotations.Param;

import com.gec.pojo.User;

public interface UserMapper {

	User userLogin(@Param("loginName") String loginName,@Param("password") String password);

	int userRegister(@Param("name") String loginName,@Param("password") String passWord,@Param("email") String email);

	User getUserByName(@Param("name") String name);

	void updateData(@Param("name")String name,@Param("email") String email,@Param("sex") String sex,@Param("age") int age,@Param("stunum") int stunum,@Param("origin") String origin);

	void expUP(@Param("exp")int exp,@Param("name") String name);

	void LvUp(@Param("lv")int lv,@Param("name") String name);

	void updateArticle(@Param("name")String name,@Param("origin") String origin);

	void updateReply(@Param("name")String name,@Param("origin") String origin);

}
